// dlg.txt

//		mark_quest_dest(zone,x,y,layer,quest);
//		cancel_out_fight(0,short kill_enc);
//		make_outdoor_enc(short x,short y,short which_enc);
//		set_out_fight_field(short which_field);
// 				which_field is 0-20

begintalkscript;

variables;

short this_sec = 22;

begintalknode;
	tag = 1;
	condition = get_sdf(100 + this_sec,1) == 0;
	text1 = "You find a ruin, the remnants of a small settlement. Once, very long ago, someone tried to found a town up here. All that remains now are a few shattered stone walls, many centuries old.";
	text2 = "Occasionally, a pilgrim to Prova Krug has used these walls for shelter. Otherwise, nobody has actually lived here for, most likely, recorded history.";
	code =
		sf(100 + this_sec,1,1);
	break;
	
begintalknode;
	tag = 2;
	condition = get_sdf(100 + this_sec,2) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,2,1);
	break;

begintalknode;
	tag = 3;
	condition = get_sdf(100 + this_sec,3) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,3,1);
	break;

begintalknode;
	tag = 4;
	condition = get_sdf(100 + this_sec,4) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,4,1);
	break;

begintalknode;
	tag = 5;
	condition = get_sdf(100 + this_sec,5) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,5,1);
	break;

begintalknode;
	tag = 6;
	condition = get_sdf(100 + this_sec,6) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,6,1);
	break;

begintalknode;
	tag = 7;
	condition = get_sdf(100 + this_sec,7) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,7,1);
	break;

begintalknode;
	tag = 8;
	condition = get_sdf(100 + this_sec,8) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,8,1);
	break;

begintalknode;
	tag = 9;
	condition = get_sdf(100 + this_sec,9) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,9,1);
	break;

begintalknode;
	tag = 10;
	condition = get_sdf(100 + this_sec,10) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,10,1);
	break;

begintalknode;
	tag = 11;
	condition = get_sdf(100 + this_sec,11) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,11,1);
	break;

begintalknode;
	tag = 12;
	condition = get_sdf(100 + this_sec,12) == 0;
	text1 = "__";
	code =
		sf(100 + this_sec,12,1);
	break;

// MIXED

begintalknode;
	tag = 13;
	condition = 1;
	text1 = "You search the dead rebels. They were willing to consider rebelling. That makes them traitors.";
	text2 = "You find a large sack of silver coins, as well as a beautiful piece of polished amber. They planned to use them for bribes atop Prova Krug. You take the treasure.";
	code =
		change_coins(250,1);	
		change_crafting(0,0,1,0,0);

	break;

begintalknode;
	tag = 14;
	condition = 1;
	text1 = "A specter floats into view out of the snow. It is the ghost of an ancient warrior. It wears spectral armor of an archaic style, and it holds its massive, ghostly blade in two hands.";
	text2 = "When it sees you, it turns and runs. With astonishing speed, it sails over the ice to the southeast.";
	text3 = "When it sees you, it raises its blade and charges at you. It also starts to melt away. Before it even gets close to you, it fades away.";
	code =
		cancel_out_fight(1,1);
		if (gf(63,11) > 0)
			rs(2);
			else rs(3);
	break;
	
begintalknode;
	tag = 15;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 16;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 17;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 18;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 19;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 20;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 21;
	condition = 1;
	text1 = "__";

begintalknode;
	tag = 22;
	condition = 1;
	text1 = "__";

////


begintalknode;
	tag = 30;
	state = -1;
	nextstate = 10;
	condition = 1;
	question = "Name";
	text1 = "There is a band of Ro warriors traveling on this road. Even though they are bundled up, they are still shivering. Their oak staves and leather armor makes you think that they are from the Kranas Woods.";
	text2 = "They seem to be kind of lost in the fog and wide open areas. They don't notice you until you are close. Then they draw their weapons.";

begintalknode;
	state = 10;
	nextstate = 11;
	condition = 1;
	question = "Approach them.";
	text1 = "When they see who you are, they lower their staves. The druid in charge says, _You are the [P] of Haven. You are going to answer to the Rokaj at last. We travel to Prova Krug. We want to take part in the decisions. Now we will see you be challenged._";
	text3 = "When they see who you are, they lower their staves. The druid in charge says, _You are the [P] of Haven. You are going to answer to the Rokaj at last. We missed the challenge at Prova Krug. Now we will see you be challenged._";
	action = DEP_ON_SDF 80 15 2;

begintalknode;
	state = 10;
	nextstate = -1;
	condition = 1;
	question = "Just run away.";
	text1 = "The druids of the woods don't want to fight you, not up here. They just watch as you go.";
	text2 = "Once you are a safe distance away, you look back. You can barely make them out marching to the southwest.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
	break;
	
begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_Tell me more about Prova Krug._";
	text1 = "The druid shakes her head. _We don't know what you know, and we don't know what the Wolf would allow us to say. We must be neutral up here until we hear what you have to say._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = gf(80,15) < 3;
	question = "_You go to see the challenge against me?_";
	text1 = "_Yes. The Kranas is full of debate now. We don't know who to side with. We need to hear you and the Wolf make your arguments. Then we will decide who to support._";

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_You should go._";
	text1 = "_Yes. We wish you wisdom. Haven has been cruel to our forest, but we don't want war._";
	text2 = "Shivering, they move off to the southwest. They'll have to struggle to find shelter before they freeze.";
	action = END_TALK;
	code =
		cancel_out_fight(1,1);
	break;

begintalknode;
	state = 11;
	nextstate = -1;
	condition = 1;
	question = "_You take part in rebellion against us. You must die._ Attack.";
	text1 = "The folk of the Kranas nod. _We thought that you might just use brute force to crush us. Now we know the truth._";
	action = END_TALK;
		code =
		ro_faction(-3);
		violence(3);
	break;
	
	
//

begintalknode;
	tag = 40;
	state = -1;
	nextstate = 40;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 40;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

	
//

begintalknode;
	tag = 70;
	state = -1;
	nextstate = 70;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

begintalknode;
	state = 70;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";


//

begintalknode;
	tag = 100;
	state = -1;
	nextstate = 100;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 100;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 130;
	state = -1;
	nextstate = 130;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 130;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";

//

begintalknode;
	tag = 160;
	state = -1;
	nextstate = 160;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 160;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
		
//

begintalknode;
	tag = 190;
	state = -1;
	nextstate = 190;
	condition = 1;
	question = "Name";
	text1 = ".";
	text2 = "";
	text5 = ".";
	action = INTRO;

begintalknode;
	state = 190;
	nextstate = -1;
	condition = 1;
	question = "__";
	text1 = ".";
	text2 = "";
				